﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PlayerTest.Player.Event
{
    public class PlayerEventArgs : EventArgs
    {
        public enum eventtype { VIDEOINFO, VOLUME, RENDER, PLAYSTART, PLAYPAUSE, PLAYSTOP, REPEAT };
        private String message;
        private int file_size;
        private int video_length;
        private double volume;
        private eventtype event_type;

        public PlayerEventArgs(eventtype type)
        {
            this.event_type = type;
            message = "";
        }

        public int FileSize
        {
            get { return file_size; }
            set { file_size = value; }
        }
        public int PlayTime
        {
            get { return video_length; }
            set { video_length = value; }
        }
        public double Volume
        {
            get { return volume; }
            set { volume = value; }
        }

        public String Message
        {
            get { return message; }
            set { message = value; }
        }
        public eventtype EventType
        {
            get { return event_type; }
            set { event_type = value; }
        }
    }

    public delegate void PlayerEventHandler(object sender, PlayerEventArgs e);
}
